package com.gyc.dao;

import com.gyc.entity.User;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper  {
    /**
     * 通过id查询
     * @param id
     * @return
     */

     User findById(Integer id);

    /**
     * 添加单个对象
     * @param user
     * @return
     */
    int insert(User user);

}
